<?php
/* Smarty version 3.1.32, created on 2022-03-28 15:52:05
  from 'D:\php_workspace\bokey\app\home\view\Index\blogShowList.html' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.32',
  'unifunc' => 'content_6241bd85dc6519_00370441',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '86bf20f5089fd0b09b9b597f4b65fe6675f52180' => 
    array (
      0 => 'D:\\php_workspace\\bokey\\app\\home\\view\\Index\\blogShowList.html',
      1 => 1648475523,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_6241bd85dc6519_00370441 (Smarty_Internal_Template $_smarty_tpl) {
?>
<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>博文列表</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <link href="<?php echo P;?>
/css/app.css" rel="stylesheet" media="screen">
  <?php echo '<script'; ?>
 src="<?php echo P;?>
/js/vendor/modernizr.custom.js"><?php echo '</script'; ?>
>
  <?php echo '<script'; ?>
 src="<?php echo P;?>
/js/vendor/detectizr.min.js"><?php echo '</script'; ?>
>
</head>

<!-- Body -->
<body>
<!-- Page Wrapper -->
<div class="page-wrapper">
  <!-- Modal -->
  <div class="modal fade" id="loginModal" tabindex="-1" role="dialog">
    <div class="modal-dialog">
      <button type="button" class="close-btn" data-dismiss="modal" aria-label="关闭"><span aria-hidden="true">&times;</span></button>
      <div class="modal-content text-center">
        <h4>登录</h4>
        <form method="post" action="index.php?c=user&a=check">
          <input type="username" name="u_username" class="form-control" placeholder="请您填写用户名" required>
          <input type="password" name="u_password" class="form-control" placeholder="请您填写密码" required>
          <div class="form-group">
            <button type="submit" class="btn login-btn btn-default waves-effect waves-light">立刻登录<i class="icon-head"></i></button>
          </div>
          <div class="text-left">
            <span class="text-sm text-semibold">新用户? <a href="#" data-toggle="modal" data-target="#registerModal">立即注册</a></span>
          </div>
        </form><!-- <form> -->
      </div><!-- .modal-content -->
    </div><!-- .modal-dialog -->
  </div><!-- .modal.fade -->

  <div class="modal fade" id="registerModal" tabindex="-1" role="dialog">
    <div class="modal-dialog">
      <button type="button" class="close-btn" data-dismiss="modal" aria-label="关闭"><span aria-hidden="true">&times;</span></button>
      <div class="modal-content text-center">
        <h4>注册</h4>
        <form method="post" action="index.php?c=user&a=register">
          <input name="u_username" type="text" class="form-control" placeholder="请您填写用户名" required>
          <input name="u_password" type="password" class="form-control" placeholder="请您填写密码" required>
          <div class="form-group">
            <img src="index.php?c=user&a=captcha" width="300px" heigth="60px" onclick="this.src='index.php?c=user&a=captcha&'+Math.random()">
          </div>
          <input name="captcha" type="text" class="form-control" placeholder="请您填写邮件验证码" required>
          <div class="form-group">
            <button type="submit" class="btn login-btn btn-default waves-effect waves-light">立刻注册<i class="icon-head"></i></button>
          </div>
          <div class="text-left">
            <span class="text-sm text-semibold">已注册? <a href="#" data-toggle="modal" data-target="#loginModal">立即登录</a></span>
          </div>
        </form><!-- <form> -->
      </div><!-- .modal-content -->
    </div><!-- .modal-dialog -->
  </div><!-- .modal.fade -->

  <!-- Navbar -->
  <!-- Add class ".navbar-sticky" to make navbar stuck when it hits the top of the page. Another modifier class is: "navbar-fullwidth" to stretch navbar and make it occupy 100% of the page width. The screen width at which navbar collapses can be controlled through the variable "$nav-collapse" in sass/variables.scss -->
  <header class="navbar">

    <!-- Toolbar -->
    <div class="topbar">
      <div class="container">
        <a href="index.html" class="site-logo">
          博文前台
        </a><!-- .site-logo -->

        <!-- Mobile Menu Toggle -->
        <div class="nav-toggle"><span></span></div>

        <div class="toolbar">
          <?php if (isset($_SESSION['user'])) {?>
          <a href="index.php?c=user&a=logout" class="text-sm">退出登录</a>
          <a href="index.php?p=admin" class="btn btn-sm btn-default btn-icon-right waves-effect waves-light"><?php echo $_SESSION['user']['u_username'];?>
 <i class="icon-head"></i></a>
          <?php } else { ?>
          <a href="#" class="btn btn-sm btn-default btn-icon-right waves-effect waves-light" data-toggle="modal" data-target="#loginModal">立刻登录 <i class="icon-head"></i></a>
          <?php }?>
        </div><!-- .toolbar -->
      </div><!-- .container -->
    </div><!-- .topbar -->
  </header><!-- .navbar -->

  <!-- Page Title -->
  <!--Add modifier class : "pt-fullwidth" to stretch page title and make it occupy 100% of the page width. -->
  <section class="page-title">
    <div class="container">
      <div class="inner">
        <div class="column">
          <div class="title">
            <h1>博文内容列表</h1>
          </div><!-- .title -->
        </div><!-- .column -->
        <div class="column">
        </div><!-- .column -->
      </div>
    </div>
  </section><!-- .page-title -->

  <!-- Container -->
  <div class="container">
    <div class="row">

      <!-- Content -->
      <div class="col-lg-9 col-md-8">
        <!-- Post -->
        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['articles']->value, 'art');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['art']->value) {
?>
        <article class="post-item">
          <a href="index.php?a=detail&id=<?php echo $_smarty_tpl->tpl_vars['art']->value['id'];?>
" class="post-thumb waves-effect">
            <img src="<?php if ($_smarty_tpl->tpl_vars['art']->value['a_img']) {
echo URL;?>
uploads/<?php echo $_smarty_tpl->tpl_vars['art']->value['a_img'];
} else {
echo P;?>
/img/blog/post01.jpg<?php }?>">
          </a><!-- .post-thumb -->
          <div class="post-body">
            <div class="post-meta">
              <div class="column">
                  <span>
                    <i class="icon-head"></i>
                    <a href="#"><?php echo $_smarty_tpl->tpl_vars['art']->value['a_author'];?>
</a>
                  </span>
                <span>在</span>
                <span>
                    <i class="icon-ribbon"></i>
                    <a href="#"><?php echo $_SESSION['categories'][$_smarty_tpl->tpl_vars['art']->value['c_id']]['c_name'];?>
</a>
                  </span>
                <span>下发布</span>
                <span class="post-comments">
                    <i class="icon-speech-bubble"></i>
                    <a href="#"><?php echo (($tmp = @$_smarty_tpl->tpl_vars['art']->value['c_count'])===null||$tmp==='' ? 0 : $tmp);?>
</a>
                  </span>
              </div>
              <div class="column"><span><?php echo date('Y-m-d',$_smarty_tpl->tpl_vars['art']->value['a_time']);?>
</span></div>
            </div><!-- .post-meta -->
            <h3 class="post-title"><?php echo $_smarty_tpl->tpl_vars['art']->value['a_title'];?>
</h3>
            <p><?php echo $_smarty_tpl->tpl_vars['art']->value['a_content'];?>
</p>
            <a href="index.php?a=detail&id=<?php echo $_smarty_tpl->tpl_vars['art']->value['id'];?>
">点击阅读更多</a>
          </div><!-- .post-body -->
        </article><!-- .post-item -->
        <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>

        <!-- Pagination -->
        <ul class="pagination">
          <?php echo $_smarty_tpl->tpl_vars['pagestr']->value;?>

        </ul>
      </div><!-- .col-lg-9.col-md-8 -->

      <!-- Sidebar -->
      <div class="col-lg-3 col-md-4">
        <div class="space-top-2x visible-sm visible-xs"></div>
        <aside class="sidebar">
          <section class="widget widget_search">
            <form method="post" class="search-box">
              <input type="text" class="form-control" name='a_title' placeholder="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['cond']->value['a_title'])===null||$tmp==='' ? '' : $tmp);?>
">
              <button type="submit"><i class="icon-search"></i></button>
            </form>
          </section>
          <section class="widget widget_categories">
            <h3 class="widget-title">
              <i class="icon-ribbon"></i>
              分类
            </h3>
            <ul>
              <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_SESSION['categories'], 'cat');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['cat']->value) {
?>
              <li><a href="index.php?c_id=<?php echo $_smarty_tpl->tpl_vars['cat']->value['id'];?>
"><?php echo str_repeat('----',$_smarty_tpl->tpl_vars['cat']->value['level']);
echo $_smarty_tpl->tpl_vars['cat']->value['c_name'];?>
<span><?php echo (($tmp = @$_smarty_tpl->tpl_vars['cat_counts']->value[$_smarty_tpl->tpl_vars['cat']->value['id']])===null||$tmp==='' ? 0 : $tmp);?>
</span></a></li>
              <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
            </ul>
          </section><!-- .widget.widget_categories -->
          <section class="widget widget_recent_posts">
            <h3 class="widget-title">
              <i class="icon-paper"></i>
              最新博文
            </h3>
            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['news']->value, 'new');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['new']->value) {
?>
            <div class="item">
              <div class="thumb">
                <a href="post-right-sidebar.html"><img src="<?php if ($_smarty_tpl->tpl_vars['new']->value['a_img_thumb']) {
echo URL;?>
uploads/<?php echo $_smarty_tpl->tpl_vars['new']->value['a_img_thumb'];
} else {
echo P;?>
/img/blog/sidebar/post01.jpg<?php }?>" alt="Post01"></a>
              </div>
              <div class="info">
                <h4><a href="index.php?a=detail&id=<?php echo $_smarty_tpl->tpl_vars['new']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['new']->value['a_title'];?>
</a></h4>
              </div>
            </div><!-- .item -->
            <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
          </section><!-- .widget.widget_recent_posts -->
        </aside><!-- .sidebar -->
      </div><!-- .col-lg-3.col-md-4 -->
    </div><!-- .row -->
  </div><!-- .container -->

  <!-- Scroll To Top Button -->
  <a href="#" class="scroll-to-top-btn">
    <i class="icon-arrow-up"></i>
  </a><!-- .scroll-to-top-btn -->

  <!-- Footer -->
  <footer class="footer">
    <div class="bottom-footer">
      <div class="container">
        <div class="copyright">
          <div class="column">
            <p>&copy; 2016. 保留所有权利。</p>
          </div><!-- .column -->
          <div class="column">
          </div><!-- .column -->
        </div><!-- .copyright -->
      </div><!-- .container -->
    </div><!-- .bottom-footer -->
  </footer><!-- .footer -->

</div><!-- .page-wrapper -->

<!-- JavaScript (jQuery) libraries, plugins and custom scripts -->
<?php echo '<script'; ?>
 src="<?php echo P;?>
/js/vendor/jquery-2.1.4.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="<?php echo P;?>
/js/vendor/bootstrap.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="<?php echo P;?>
/js/vendor/waves.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="<?php echo P;?>
/js/vendor/placeholder.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="<?php echo P;?>
/js/vendor/waypoints.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="<?php echo P;?>
/js/vendor/velocity.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="<?php echo P;?>
/js/scripts.js"><?php echo '</script'; ?>
>

</body><!-- <body> -->

</html>
<?php }
}
